package com.ruoyi.bizsys.service;

import java.util.List;

import com.ruoyi.bizsys.domain.CollectionReduceOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.bizsys.domain.LoanIou;
import com.ruoyi.bizsys.vo.CollectionReduceOrderVo;

/**
 * 催收减免订单Service接口
 *
 * @author african-loan
 * @date 2022-08-15
 */
public interface ICollectionReduceOrderService extends IService<CollectionReduceOrder>{
    /**
     * 查询催收减免订单
     *
     * @param id 催收减免订单ID
     * @return 催收减免订单
     */
    public CollectionReduceOrder selectCollectionReduceOrderById(Long id);

    /**
     * 查询催收减免订单列表
     *
     * @param collectionReduceOrder 催收减免订单
     * @return 催收减免订单集合
     */
    public List<CollectionReduceOrder> selectCollectionReduceOrderList(CollectionReduceOrder collectionReduceOrder);

    /**
     * 新增催收减免订单
     *
     * @param collectionReduceOrder 催收减免订单
     * @return 结果
     */
    public int insertCollectionReduceOrder(CollectionReduceOrder collectionReduceOrder);

    /**
     * 修改催收减免订单
     *
     * @param collectionReduceOrder 催收减免订单
     * @return 结果
     */
    public int updateCollectionReduceOrder(CollectionReduceOrder collectionReduceOrder);

    /**
     * 批量删除催收减免订单
     *
     * @param ids 需要删除的催收减免订单ID
     * @return 结果
     */
    public int deleteCollectionReduceOrderByIds(Long[] ids);

    /**
     * 删除催收减免订单信息
     *
     * @param id 催收减免订单ID
     * @return 结果
     */
    public int deleteCollectionReduceOrderById(Long id);

    List<CollectionReduceOrderVo> selectCollectionReduceOrderVoList(CollectionReduceOrder collectionReduceOrder);

    CollectionReduceOrder selectCollectionReduceOrderByLoanNo(String loanSerialNo);

    /**
     * 查询待审核的订单
     * @param loanSerialNo
     * @return
     */
    CollectionReduceOrder selectOnAppleyingByLoanNo(String loanSerialNo);
    /**
     * 查询未使用的订单
     * @param loanSerialNo
     * @return
     */
    CollectionReduceOrder selectNotUseByLoanNo(String loanSerialNo);
}